package cn.bugstack.xfg.dev.tech.api;

import org.springframework.ai.chat.ChatResponse;
import reactor.core.publisher.Flux;

public interface IAiService {
    /**
     * 直接应答
     * @param model
     * @param message
     * @return
     */
    ChatResponse generate(String model, String message);

    /**
     * 流式应答
     * @param model
     * @param message
     * @return
     */
    Flux<ChatResponse> generateStream(String model, String message);

}
